#ifndef RECTANGLE_H
#define RECTANGLE_H

namespace Math
{
    template<typename T>
    class Rectangle
    {
        public:
            T X;
            T Y;
            T Width;
            T Height;

            Rectangle()
            {
            }
            Rectangle(T x,T y, T w, T h)
            {
                X = x; Y = y;
                Width = w; Height = h;
            }
            virtual ~Rectangle()
            {
            }

            bool Contains(T x, T y)
            {
                if(x > X &&
                   x < X + Width &&
                   y > Y &&
                   y < Y + Height)
                    return true;
                else
                    return false;
            }

        protected:
        private:
    };
}

#endif // RECTANGLE_H
